package bjtu.cit.bookshop.daos;

import bjtu.cit.bookshop.entities.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKeyWithBLOBs(Book record);

    int updateByPrimaryKey(Book record);

    List<Book> selectByNotNullFields(Book record);

    List<Book> selectBookList();

    List<Book> searchBook(Book book);
}